import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double F = scanner.nextDouble();
        double ans = 5.0*(F-32)/9.0;
        System.out.println("c="+String.format("%.2f", ans));
    }
}
